<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(param){
            console.log(param);
        }

        fn`
            hello world
        `;
        // fn([`
            // hello world
        // `])

        function fn1(stringArr,a,b){
            console.log(stringArr);
            console.log(a,b);

        }

        fn1`hello 我的姓名是${'jack'},我的年龄是${20}!`;

        function fn2(stringArr,...args){
            console.log(stringArr);
            console.log(args);

        }

        fn2`hello 我的姓名是${'jack'},我的年龄是${20}!我的爱好是${'学习'}`;
    </script>
</body>
</html>